import React from 'react';
import { BrowserRouter, Routes, Route } from 'react-router-dom';
// import Markdown from '@/components/markdown';
import Tags from '@/components/tags';
import Components from '@/components';
import Collections from '@/components/collections';

const RouterIndex = () => {
  return (
    <BrowserRouter>
      <Routes>
        <Route path="/" element={<Components />}>
          {/* <Route path="/markdown" element={<Markdown content={''} />}></Route> */}
          <Route
            path="/tags"
            element={
              <Tags
                tagList={[
                  {
                    tagname: '测试',
                    id: '11131211111',
                  },
                  {
                    tagname: '测试',
                    id: '1123111111',
                  },
                  {
                    tagname: '测试',
                    id: '111611111',
                  },
                  {
                    tagname: '测试',
                    id: '111811111',
                  },
                  {
                    tagname: '测试',
                    id: '1111134111',
                  },
                ]}
              />
            }
          ></Route>
          <Route path="/collections" element={<Collections />}></Route>
        </Route>
      </Routes>
    </BrowserRouter>
  );
};

export default RouterIndex;
